package edu.spec.dengyan.week04.class01;

public class Prawn{

	String name;

	public Prawn(String name){

		this.name=name;

	}

	public static void main(String[] args){

		Prawn p=new Prawn("琵琶虾");
		Prawn Prawn=new Prawn("小龙虾");
		System.out.println(p.name + "\n" +Prawn.name);
		System.out.println("我是" + p.getName() + ",我吃" + Prawn.getName() );

	}

	public String getName(){

		return name;
	}

	public void eat(Prawn p,Prawn Prawn){

		System.out.println("我是" + p.getName() + ",我吃" + Prawn.getName() );
	}
}
